package com.wiscamp.ninechapters.panels.application.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import cube.ddd.application.ViewObject;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class DictionaryVO implements ViewObject {
    /**
     * 字典编号
     */
    private long dictionaryId = 0;

    /**
     * 应用编号
     */
    private long applicationId = 0;

    /**
     * 字典代码
     */
    private String dictionaryCode = "";

    /**
     * 字典名称
     */
    private String dictionaryName = "";

    /**
     * 字典分组
     */
    private String dictionaryGroup = "";

    /**
     * 字典层级
     */
    private int dictionaryLevel = 0;

    /**
     * 上级字典编号
     */
    private int parentId = 0;

    /**
     * 备注
     */
    private String remark = "";

    /**
     * 创建用户
     */
    private long creatorId = 0L;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime creationTime;

    /**
     * 编辑用户
     */
    private long modifierId = 0L;

    /**
     * 编辑时间
     */
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime modificationTime;

    /**
     * 是否启用
     */
    private boolean enabled = true;

    /**
     * 是否删除
     */
    private boolean deleted = false;

    /**
     * 创建人名称
     */
    private String creatorName = "";

    /**
     * 编辑人名称
     */
    private String modifierName = "";
}
